package com.heima.comment.feign;

import com.heima.comment.entity.ApUser;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Mr_Su
 * @version v1.0
 * @date 2022/7/6 19:01
 * @desciption
 */
@FeignClient("leadnews-user")
public interface UserFeign {

    @GetMapping("/api/v1/user/{id}")
    public ResponseResult<ApUser> getById(@PathVariable("id") Integer id);
}
